home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap26 / dun26_5.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  1.1 KB  |  47 lines

  1. var count = 0;
  2.  
  3. function preLoad() {
  4.     core = new Image();
  5.     core.src = "../images/core.gif";
  6.     core.onLoad = loadCheck();
  7.  
  8.     closedeye = new Image();
  9.     closedeye.src = "../images/closedeye.gif";
  10.     closedeye.onLoad = loadCheck();
  11.  
  12.     openeye = new Image();
  13.     openeye.src = "../images/openeye.gif";
  14.     openeye.onLoad = loadCheck();
  15.  
  16.     flare = new Image();
  17.     flare.src = flare_img;
  18.     flare.onLoad = loadCheck();
  19.  
  20.     guru = new Image();
  21.     guru.src = "../images/guru.gif";
  22.     guru.onLoad = loadCheck();
  23.  
  24.     legs = new Image();
  25.     legs.src = "../images/legs.gif";
  26.     legs.onLoad = loadCheck();
  27.  
  28.     sun = new Image();
  29.     sun.src = sun_img;
  30.     sun.onLoad = loadCheck();
  31.  
  32.     guide_off = new Image();
  33.     guide_off.src = "../images/guide_off.gif";
  34.     guide_off.onLoad = loadCheck();
  35.  
  36.     guide_on = new Image();
  37.     guide_on.src = "../images/guide_on.gif";
  38.     guide_on.onLoad = loadCheck();
  39. }
  40.  
  41. function loadCheck() {
  42.     count++;
  43.     if(count == 9) {
  44.         positionLayers();
  45.     }
  46. }
  47.